extern crate serde;
extern crate serde_json;

use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct Paper{
    pub id :i32,
    pub name: String,
    pub subject_id: i32,
    pub score: i32,
    pub question_count: i32,
    pub suggest_time: i32,
    pub first_category: String,
    pub second_category: String,
    pub create_time:String,
    pub collect:i32,
    pub top:i32,
    pub zan:i32,
    pub nice_name:String,
    pub real_name:String,
    pub is_explicit:i32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct PaperListData{
    pub cur_page:i32,
    pub datas:Option<Vec<Paper>>,
    pub offset:i64,
    pub over:bool,
    pub page_count:i32,
    pub size:i32,
    pub total:i32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct PaperPageData{
    pub data:PaperListData,
    pub error_code:i32,
    pub error_msg:String,
}